package com.wanghlme.day27.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class Emp {

    private Dept dept;
    private String empName;
    @JSONField(format = "yyyy-MM-dd")
    private Date empHiredate;
    private Integer empId;
    private Integer empStatus;

    public Emp() {
    }

    public Emp(Dept dept, String empName, Date empHiredate, Integer empId, Integer empStatus) {
        this.dept = dept;
        this.empName = empName;
        this.empHiredate = empHiredate;
        this.empId = empId;
        this.empStatus = empStatus;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public Date getEmpHiredate() {
        return empHiredate;
    }

    public void setEmpHiredate(Date empHiredate) {
        this.empHiredate = empHiredate;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public Integer getEmpStatus() {
        return empStatus;
    }

    public void setEmpStatus(Integer empStatus) {
        this.empStatus = empStatus;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "dept=" + dept +
                ", empName='" + empName + '\'' +
                ", empHiredate=" + empHiredate +
                ", empId=" + empId +
                ", empStatus=" + empStatus +
                '}';
    }
}